import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
//模块式开发，把每一个功能所用的数据都分为一个小仓库
import home from './home'
import search from './search'
import detail from './detail'
import shopcart from './shopcart'
import user from './user'
import trade from './trade'
import center from './center'

export default new Vuex.Store({
    //使用模块
    modules: {
        home, search, detail, shopcart, user, trade, center
    }
})